<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>09_溢出处理</title>
    <style>
        .overflow{
            width:300px ;
            height: 1300px;
            background-color: lightgreen;
            overflow: visible;/*溢出可见,默认值*/
            overflow: hidden;/*溢出隐藏，超出去的部分直接裁掉*/
            overflow: scroll;/*无论是否滥出，两个方向都显示拖拽条*/
            overflow: auto;/*溢出的方向自动显示拖拽条*/
        }
        .txt{
            background-color: yellow;
            width: 200px;
            /*以下三句代码为组合代码,缺一不可!*/
            white-space: nowrap;/*强制文本不换行*/
            overflow: hidden;/*溢出隐藏*/
            text-overflow: ellipsis;/*溢出的文字替换为省略号*/
        }
    </style>
</head>
<body>
    <!--  title属性用于展示对应html元素的描述提示文本   -->
    <div class="txt" title="Lorem ipsum dolor sit amet, consectetur adipisicing elit. ">
        Lorem ipsum dolor sit amet, consectetur adipisicing elit. Accusamus ad aliquam cupiditate dignissimos ea harum inventore libero minus modi obcaecati odit pariatur perferendis quam quibusdam, quis reprehenderit suscipit, tempore voluptatum!
    </div>
    <div class="overflow">
        <img src="../day01/1.png" alt="">
        <img src="../day01/1.png" alt="">
    </div>
</body>
</html>